package com.kizitonwose.calendarview.utils;

import ohos.agp.utils.Point;
import ohos.agp.window.service.DisplayManager;
import ohos.app.Context;

/**
 * @author LiuQingHua
 * @version 1.0
 * @date 2021/3/15/015 14:35
 */
public class DisplayUtils {

    public static float getWidth(Context context) {
        Point point = new Point();
        DisplayManager.getInstance().getDefaultDisplay(context).get().getSize(point);
        return point.getPointX();
    }

    public static float getHeight(Context context) {
        Point point = new Point();
        DisplayManager.getInstance().getDefaultDisplay(context).get().getSize(point);
        return point.getPointY();
    }
}
